package com.bravo.mvpkotlin.data.source.api

import com.bravo.mvpkotlin.data.Repo
import com.bravo.mvpkotlin.data.Users
import io.reactivex.Flowable
import retrofit2.http.GET
import retrofit2.http.Query
import retrofit2.http.Url

/**
 * Created by Administrator on 2017/6/22 0022.
 */
interface GithubService {
    @GET("/search/users")
    fun getUsers(@Query("q")key :String):Flowable<Users>

    @GET
    fun  getRepos(@Url path: String): Flowable<List<Repo>>
}